﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DEPT.aspx.cs" Inherits="ZHONGLANGWEBUI.ZHONGLANG.SYS.DEPT" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxTT" %>
<%@ Register Src="../../ZhongLang/TT_DGHEADPAGE.ascx" TagName="PagerNavigation" TagPrefix="ucPage" %>
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><title>TT</title>
    <script type="text/javascript" src="../../ZhongLang/CSSJS/PageScript.js"></script>
    <script src="../../ZhongLang/CSSJS/My97DatePicker/WdatePicker.js"></script>
    <link href="../../ZhongLang/CSSJS/style.css?TT=CSS20161107" rel="stylesheet" />
    <link href="../../cssjs/css/bootstrap.min.css?v=3.3.6" rel="stylesheet" />
    <link href="../../cssjs/css/plugins/iCheck/custom.css" rel="stylesheet" />
    <link href="../../cssjs/css/plugins/sweetalert/sweetalert.css" rel="stylesheet" />
    <link href="../../cssjs/css/font-awesome.min.css?v=4.4.0" rel="stylesheet" />
    <link href="../../cssjs/css/animate.min.css" rel="stylesheet" />
    <link href="../../cssjs/css/style.min.css?v=1.0.0" rel="stylesheet" />
</head><body class="gray-bg"><div class="wrapper wrapper-content animated fadeInRight"><form id="frmTT" name="master" runat="server" role="form" class="form-inline"><asp:ScriptManager ID="smTT" runat="server"></asp:ScriptManager>
<!-------------------------------------------------------------------------------------------------->
<div class="row" id="tabQuery" runat="server"><div class="col-sm-12"><div class="float-e-margins"><div class="ibox-content">
    <div class="form-group">
        <%--<asp:UpdatePanel ID="panelQDDL" runat="server"><ContentTemplate>
                        <asp:TextBox ID="txtQSUPPLIERCODE" runat="server" CssClass="input_box" MaxLength="32" />
                        <ajaxTT:AutoCompleteExtender ID="txtAuto1" runat="server" ServiceMethod="GetDDLSUPPLIER"
                            ServicePath="../PUB/ddl.asmx" Enabled="True" TargetControlID="txtQSUPPLIERCODE"
                            CompletionSetCount="20" CompletionInterval="1000" MinimumPrefixLength="2">
                        </ajaxTT:AutoCompleteExtender>
         </ContentTemplate></asp:UpdatePanel>--%>
        <asp:UpdatePanel ID="panelQDDL" runat="server"><ContentTemplate>
            <label>所属单位:</label><asp:DropDownList runat="server" CssClass="form-control" ID="ddlQCOMID" AutoPostBack="true" OnSelectedIndexChanged="ddlQCOMID_OnSelectedIndexChanged" Width="150px" />
            <label>上级部门:</label><asp:DropDownList runat="server" CssClass="form-control" ID="ddlQDEPTPRO" Width="150px" />
            <label>机构名称:</label><asp:TextBox ID="txtQDEPTNAME" runat="server" CssClass="form-control" MaxLength="32" Width="150px" />
            <label>状态:    </label><asp:DropDownList runat="server" CssClass="form-control" ID="ddlQDEPTSTATE" Width="150px" /> 
        </ContentTemplate></asp:UpdatePanel> 
    </div>
    <asp:Button ID="btnQuery" runat="server" CommandName="查询" Text="查询" CssClass="btn btn-w-m btn-outline btn-primary" OnClick="btn_Click" /> 
</div></div></div></div>
<!-------------------------------------------------------------------------------------------------->
<div style="overflow: auto; width: 100%;"><div id="tabShow" runat="server" style="overflow: auto; width: 100%;">
    <table border="0" style="width:100%">
        <tr><td><asp:Button ID="btnAdd" runat="server" CommandName="添加" Text="添加" CssClass="btn btn-w-m btn-success" OnClick="btn_Click" /></td>  
            <td style="width:100%"><ucPage:PagerNavigation ID="pgShow" runat="server" /> 
                <asp:Button ID="btnPgShowQuery" runat="server" CommandName="查询" style="display:none" OnClick="btn_Click" />
                <asp:Button ID="btnPgShowExp"   runat="server" CommandName="导出" style="display:none" OnClick="btn_Click" />
            </td>
        </tr>
    </table> 
    <asp:GridView ID="dgList" runat="server" Style="width: 100%" AutoGenerateColumns="False"
        OnRowCommand="dgList_RowCommand" OnRowDataBound="dgList_RowDataBound" OnSorting="dgList_Sorting" AllowSorting="true">
        <HeaderStyle CssClass="Gv_HeaderStyle" /><RowStyle CssClass="Gv_RowStyle" /><AlternatingRowStyle CssClass="Gv_AlternateStyle" />
        <Columns>
            <asp:TemplateField><ItemStyle HorizontalAlign="Center" /><HeaderTemplate>序</HeaderTemplate><ItemTemplate>
                    <label><%# this.dgList.PageIndex * this.dgList.PageSize + this.dgList.Rows.Count + 1%></label>
                </ItemTemplate></asp:TemplateField>
            <asp:TemplateField HeaderText="操作" ItemStyle-HorizontalAlign="Center"><ItemTemplate>
                    <asp:LinkButton ID="lbtnB" CssClass="btn btn-success fa fa-keyboard-o" Text=" 修改" runat="server" CommandArgument='<%#Eval("DEPTID")%>' CommandName="修改" />
                </ItemTemplate></asp:TemplateField>
            <asp:BoundField DataField="COMNAME" HeaderText="所属单位" SortExpression="COMNAME" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="DEPTCODE" HeaderText="机构编号" SortExpression="DEPTCODE" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="DEPTNAME" HeaderText="机构名称" SortExpression="DEPTNAME" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="DEPTNAMEPRO" HeaderText="所属部门" SortExpression="DEPTNAMEPRO" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="DEPTMANAGE" HeaderText="管理人" SortExpression="DEPTMANAGE" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="DEPTREMARK" HeaderText="机构职责" SortExpression="DEPTREMARK" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="200px" />
            <asp:BoundField DataField="DEPTSTATENAME" HeaderText="状态" SortExpression="DEPTSTATENAME" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="UPDATEMANNAME" HeaderText="操作人" SortExpression="UPDATEMANNAME" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="UPDATETIME" HeaderText="操作时间" SortExpression="UPDATETIME" ItemStyle-HorizontalAlign="Center" /> 
        </Columns>
    </asp:GridView>  
</div></div>
<!-------------------------------------------------------------------------------------------------->
<div class="row" id="tabEdit" runat="server" width="100%" visible="false">
    <div class="col-sm-12"><div class="float-e-margins"><div class="ibox-title"><h3>信息编辑</h3></div><div class="ibox-content">
    <div class="form-group">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate>
            <div class="form-group"><label>所属单位:</label><asp:DropDownList runat="server" CssClass="form-control" ID="ddlECOMID" Width="150px"  AutoPostBack="true" OnSelectedIndexChanged="ddlECOMID_OnSelectedIndexChanged"  /> </div>        
            <div class="form-group"><label>上级部门:</label><asp:DropDownList runat="server" CssClass="form-control" ID="ddlEDEPTPRO" Width="150px" /> </div>        
        </ContentTemplate></asp:UpdatePanel>  
        <div class="hr-line-dashed"></div>
        <div class="form-group"><label>机构编号:</label><asp:TextBox ID="txtEDEPTCODE" CssClass=" form-control" runat="server" MaxLength="8" Width="150px"/></div>
        <div class="form-group"><label>机构名称:</label><asp:TextBox ID="txtEDEPTNAME" CssClass="form-control" runat="server" MaxLength="16" Width="150px" /></div> 
        <div class="form-group"><label>管理人　:</label><asp:TextBox ID="txtEDEPTMANAGE" CssClass="form-control" runat="server" MaxLength="16" Width="150px" /></div>
        <div class="form-group"><label>当前状态:</label><asp:DropDownList runat="server" CssClass="form-control" ID="ddlEDEPTSTATE"  Width="150px"/> </div>  
        <br />
        <div class="form-group"><label>机构职责:</label><asp:TextBox ID="txtEDEPTREMARK" CssClass="form-control" TextMode="MultiLine" Height="50px" runat="server" Width="780px" MaxLength="252" /></div> 
    </div> 
    <div class="hr-line-dashed"></div>
    <asp:Label ID="lblUpdate" runat="server" CssClass="LabelFont" /><br />
    <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btn_Click" CssClass="btn btn-w-m btn-outline btn-primary" OnClientClick="funSave()" CommandName="保存" />
    <asp:Button ID="btnClose" runat="server" Text="关闭" OnClick="btn_Click" CssClass="btn btn-w-m btn-successe" CommandName="关闭" />
    <div class="hr-line-dashed"></div> 
    <div class="form-group">
            <link href="../../cssjs/umeditor-net/themes/default/css/umeditor.css" type="text/css" rel="stylesheet" />
            <asp:TextBox ID="txtEditor" runat="server" placeholder="" style="display:none" />
            <asp:HiddenField ID="hidEditorPath" runat="server" />
            <script id="editor" type="text/plain" style="width:1000px;height:130px;"></script> 
            <script type="text/javascript" src="../../cssjs/umeditor-net/third-party/jquery.min.js"></script>  
            <script type="text/javascript" src="../../cssjs/umeditor-net/third-party/template.min.js"></script>  
            <script type="text/javascript" src="../../cssjs/umeditor-net/umeditor.config.js"></script> 
            <script type="text/javascript" src="../../cssjs/umeditor-net/umeditor.min.js"></script>  
            <script type="text/javascript" src="../../cssjs/umeditor-net/lang/zh-cn/zh-cn.js"></script>
            <script type="text/javascript"> 
                UM.getEditor('editor').setContent(document.getElementById("txtEditor").value, false);
                function funSave() {
                    document.getElementById("txtEditor").value = UM.getEditor('editor').getPlainTxt();
                    return;
                }
            </script> 
    </div>   
</div></div></div></div>
<!------------------------------------------------------------------------------------------------------------------->
</form></div>
<script src="../../cssjs/js/jquery.min.js?v=2.1.4"></script>
<script src="../../cssjs/js/bootstrap.min.js?v=3.3.6"></script>
<script src="../../cssjs/js/content.min.js?v=1.0.0"></script>
<script src="../../cssjs/js/plugins/iCheck/icheck.min.js"></script>
<script src="../../cssjs/js/plugins/sweetalert/sweetalert.min.js"></script>
<script> $(document).ready(function () { $(".i-checks").iCheck({ checkboxClass: "icheckbox_square-green", radioClass: "iradio_square-green", }) });</script>
</body></html> 